package com.srv.persistence;

import java.util.List;
import java.util.Map;
import com.srv.model.Travel;
import com.srv.util.ObjectField;

public interface ITravelPersistence{ 
	
	List<Travel> queryTravelList(long pid, Map<ObjectField, Object> keyValues) throws PersistenceException;
	
	Travel getTravel(long pid, String travelID)throws PersistenceException;
	
	Travel insertTravel(Travel travel)throws PersistenceException;
	
	boolean updateTravel(long pid, String travelID, Map<ObjectField, Object> keyValues)throws PersistenceException;
	void deleteTravel(long pid, String travelID)throws PersistenceException;
}
